import Vue from 'vue'
import Vuex from 'vuex'

import * as mutations from './mutations'
import * as getters from './getters'

Vue.use(Vuex)

const state = {
	title:'',
	showCloseBtn:false,
  toast: {
		isShow: false,
		text:'',
		duration: '',
		type: ''
  },
  loading: {
		isShow: false,
		text: ''
	},
}

export default new Vuex.Store({
  state,
  getters,
  mutations
})
